package com.atguigu.yygh.hosp.service;


import com.atguigu.yygh.model.hosp.Hospital;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA
 *
 * @Date: 2022/12/19 - 14:19
 * @Author: Hyoung
 * @Description:
 */
public interface HospitalService {


    void save(Map<String, Object> stringObjectMap);

    Hospital getByHoscode(String hoscode);

    Page<Hospital> selectPage(Integer page, Integer limit, String hosname);

    void updateStatus(String id, Integer status);

    Hospital show(String id);

    /**
     * 根据条件查询医院列表
     *
     * @param keywords 医院名称
     * @param levelId  医院级别Id
     * @param areaId   医院地区Id
     * @return
     */
    List<Hospital> selectList(String keywords, String levelId, String areaId);

    /**
     * 获取医院详细信息
     *
     * @param hoscode
     * @return
     */
    Hospital getDetail(String hoscode);

}
